import Actions from './actions';
export interface IMainReducer {
  isReady: boolean;
  isLoading?: boolean;
  showMode?: boolean;
  current: number;
  tabList: [];
  titleList: [];
  leftData: []; // 左边的数据
  rightData: []; // 右边的数据
  selectId: string;
  pageNum?: number;
  totalPages?: number;
  pointsAvailable?: number; //积分值
  pointsExpireDay?: number; //积分过期日
  pointsExpireMonth?: number; //积分过期月
  continuousDays?: number; //连续签到天数
  daysNumArr: any[]; //7天数据
  signRecordList: [];
  signFlag: boolean; //今日是否签到标志
  successMessage: string; //签到7天提示语
  giftType: number; //礼包类型 0：积分，1：优惠券，2：商品
}

export type ActionType = ReturnType<typeof Actions>;
export type IAllReducerProps = {
  main: IMainReducer;

  [name: string]: any;
};

//默认是全部的属性,可以自定义
export type IProps = IAllReducerProps & ActionType;

//create by moon https://github.com/creasy2010/moon
